﻿@model Host.Models.ClientContact
@{
    ViewBag.Title = "ClientContracts";
}
<h2>Client Contracts</h2>
<script src="@Url.Content("~/Views/System/ClientContracts.js")" type="text/javascript"></script>
<h2>Client Contracts</h2>
<br />
<div>
<table>
<tr>
    <td>Client:</td>
    <td>
            
    </td>
</tr>
</table>
</div>
                    @{ 
                        var grid = new WebGrid(canPage: true, rowsPerPage: Host.Controllers.SystemController.ClientContractPageSize, 
                            canSort: true, ajaxUpdateContainerId: "grid", ajaxUpdateCallback: "updateStyle");
                            grid.Bind(Model.ClientContracts, rowCount: Model.TotalRecords, autoSortAndPage: false);
                           
                              @grid.GetHtml(
                                             tableStyle: "ui-grid-content ui-widget-content",
                                             headerStyle: "ui-grid-header ui-widget-header ui-corner-top ui-state-default",
                                             footerStyle: "ui-grid-footer ui-widget-header ui-corner-bottom ",
                                             alternatingRowStyle: "webgrid-alternating-rows",
                                    htmlAttributes: new { id = "grid" },
                                    columns: grid.Columns(
                                        grid.Column("ClientName"),
                                        grid.Column("Active"),
                                        grid.Column("PostalAddress"),
                                        grid.Column(format: @<a href='#' onclick="Edit(@item.ClientId)" >Edit</a>)
                                    ));
                        }
